import { Input, Menu, Dropdown, Icon, List, Avatar, Button, Carousel, Select, notification } from 'antd';
import React, { useState, useRef } from 'react';
import { getLodop } from './LodopFuncs.js';


var storage = window.localStorage;



//通用打印工具
export function useprint_util(khmbcheck, printdata) {
  var  LODOP = getLodop();

  if (khmbcheck == "中文普通模板") {
    LODOP.PRINT_INITA(0, 0, "100.01mm", "109.99mm", "中文普通");
    LODOP.ADD_PRINT_SETUP_BKIMG("http://111.77.154.58:2233/logon.png");
    LODOP.SET_SHOW_MODE("BKIMG_LEFT", 18);
    LODOP.SET_SHOW_MODE("BKIMG_TOP", 3);
    LODOP.SET_SHOW_MODE("BKIMG_WIDTH", "25.75mm");
    LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", "8.94mm");
    LODOP.SET_SHOW_MODE("BKIMG_IN_PREVIEW", true);
    LODOP.SET_SHOW_MODE("BKIMG_PRINT", true);
    LODOP.ADD_PRINT_RECT(49, 20, 327, 361, 0, 1);
    LODOP.ADD_PRINT_RECT(49, 20, 327, 30, 0, 1);
    LODOP.ADD_PRINT_RECT(49, 20, 327, 60, 0, 1);
    LODOP.ADD_PRINT_RECT(49, 20, 327, 90, 0, 1);
    LODOP.ADD_PRINT_RECT(49, 20, 327, 120, 0, 1);
    LODOP.ADD_PRINT_RECT(49, 20, 327, 150, 0, 1);
    LODOP.ADD_PRINT_RECT(49, 20, 327, 180, 0, 1);
    LODOP.ADD_PRINT_RECT(49, 20, 327, 265, 0, 1);
    LODOP.ADD_PRINT_RECT(49, 91, 256, 180, 0, 1);
    LODOP.ADD_PRINT_RECT(109, 173, 174, 147, 0, 1);
    LODOP.ADD_PRINT_RECT(109, 255, 92, 147, 0, 1);
    LODOP.ADD_PRINT_RECT(229, 20, 71, 27, 0, 1);
    LODOP.ADD_PRINT_TEXT(317, 23, 327, 105, "厂址:浙江省宁波市象山县经济开发区城南高新创业园官河路9号\r\n邮编: 315700\r\n电话: 0574-25708678\r\n公司网址: www.king-pont.com\r\n电子邮箱: info@king-pont.com");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 8);
    LODOP.SET_PRINT_STYLEA(0, "LineSpacing", 2);
    LODOP.ADD_PRINT_TEXT(5, 98, 261, 36, "甬舟能源技术股份有限公司");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 12);
    LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
    LODOP.ADD_PRINT_TEXT(56, 29, 58, 28, "订单号 ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(86, 29, 58, 28, "批号 ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(116, 29, 58, 28, "型号 ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(116, 190, 58, 28, "检验 ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(146, 29, 58, 28, "类别 ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(146, 190, 58, 28, "卷数 ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(176, 19, 88, 28, "厚度(mm) ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(176, 175, 88, 28, "宽度(mm) ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_RECT(229, 91, 256, 27, 0, 1);
    LODOP.ADD_PRINT_TEXT(206, 19, 88, 28, "长度(m) ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(206, 175, 88, 28, "电晕 ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(236, 19, 88, 28, "重量(kg) ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(236, 190, 58, 28, "管芯 ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(56, 100, 236, 20, printdata.ddh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(83, 103, 235, 20, printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(116, 89, 100, 20, printdata.xh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(116, 247, 100, 20, printdata.djmc);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(146, 89, 100, 20, printdata.gg);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(146, 247, 100, 20, printdata.js);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(176, 89, 100, 20, printdata.hd);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(176, 247, 100, 20, printdata.kd);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(206, 89, 100, 20, printdata.changdu);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(206, 247, 100, 20, printdata.dy);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(236, 89, 100, 20, printdata.bqzl);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(236, 247, 100, 20, printdata.gx);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_BARCODE(271, 75, 275, 26, "Code39", printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "ShowBarText", 0);
    LODOP.ADD_PRINT_TEXT(295, 60, 275, 20, printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.PREVIEW();


  }
  else if (khmbcheck == "中文二维码模板") {
    LODOP.PRINT_INITA(0, 0, "100.01mm", "109.99mm", "中文普通（二维码");
    LODOP.ADD_PRINT_SETUP_BKIMG("http://111.77.154.58:2233/logon.png");
    LODOP.SET_SHOW_MODE("BKIMG_LEFT", 18);
    LODOP.SET_SHOW_MODE("BKIMG_TOP", 3);
    LODOP.SET_SHOW_MODE("BKIMG_WIDTH", "19.05mm");
    LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", "9mm");
    LODOP.SET_SHOW_MODE("BKIMG_IN_PREVIEW", true);
    LODOP.SET_SHOW_MODE("BKIMG_PRINT", true);
    LODOP.ADD_PRINT_RECT(40, 13, 355, 370, 0, 1);
    LODOP.ADD_PRINT_RECT(40, 13, 80, 250, 0, 1);
    LODOP.ADD_PRINT_RECT(340, 13, 355, 70, 0, 1);
    LODOP.ADD_PRINT_RECT(40, 13, 80, 80, 0, 1);
    LODOP.ADD_PRINT_RECT(120, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(145, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(170, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(217, 13, 355, 23, 0, 1);
    LODOP.ADD_PRINT_RECT(240, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(265, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(170, 190, 83, 120, 0, 1);
    LODOP.ADD_PRINT_TEXT(345, 17, 345, 63, "厂址:浙江省宁波市象山县经济开发区城南高新创业园官河路9号\r\n邮编: 315700\r\n电话: 0574-25708678  \r\n公司网址: www.king-pont.com \r\n电子邮箱: info@king-pont.com");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 7);
    LODOP.ADD_PRINT_TEXT(5, 97, 290, 32, "甬舟能源技术股份有限公司");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 12);
    LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
    LODOP.ADD_PRINT_BARCODE(45, 18, 87, 85, "QRCode", printdata.id);
    LODOP.SET_PRINT_STYLEA(0, "QRCodeErrorLevel", "L");
    LODOP.SET_PRINT_STYLEA(0, "QRCodeVersion", 5);
    LODOP.SET_PRINT_STYLEA(0, "DataCharset", "UTF-8");
    LODOP.ADD_PRINT_TEXT(122, 18, 68, 20, "订单号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(147, 18, 68, 20, "批号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(172, 18, 68, 20, "型号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(197, 18, 68, 20, "类别");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(220, 15, 85, 20, "厚度(mm)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(243, 15, 85, 20, "长度(m)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(270, 15, 85, 20, "重量(Kg)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(123, 99, 264, 20, printdata.ddh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(146, 99, 264, 20, printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(172, 96, 100, 20, printdata.xh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(198, 96, 100, 20, printdata.gg);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(220, 96, 100, 20, printdata.hd);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(243, 96, 100, 20, printdata.changdu);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(269, 96, 100, 20, printdata.bqzl);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_BARCODE(294, 82, 279, 29, "Code39", printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "ShowBarText", 0);
    LODOP.ADD_PRINT_TEXT(173, 201, 68, 20, "检验");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(198, 201, 68, 20, "卷数");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(219, 192, 85, 20, "宽度(mm)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(243, 192, 85, 20, "电晕");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(269, 192, 85, 20, "管芯");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(173, 270, 100, 20, printdata.djmc);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(198, 270, 100, 20, printdata.js);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(219, 270, 100, 20, printdata.kd);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(243, 270, 100, 20, printdata.dy);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(269, 270, 100, 20, printdata.gx);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(321, 65, 279, 20, printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.PREVIEW();


  }
  else if (khmbcheck == "盘带模板") {
    var zzl = (parseFloat(printdata.js) * parseFloat(printdata.bqzl)).toFixed(1)

    LODOP.PRINT_INITA(0, 0, "100.01mm", "109.99mm", "中文普通（盘带");
    LODOP.ADD_PRINT_SETUP_BKIMG("http://111.77.154.58:2233/logon.png");
    LODOP.SET_SHOW_MODE("BKIMG_LEFT", 18);
    LODOP.SET_SHOW_MODE("BKIMG_TOP", 3);
    LODOP.SET_SHOW_MODE("BKIMG_WIDTH", "19.05mm");
    LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", "9mm");
    LODOP.SET_SHOW_MODE("BKIMG_IN_PREVIEW", true);
    LODOP.SET_SHOW_MODE("BKIMG_PRINT", true);
    LODOP.ADD_PRINT_RECT(40, 13, 355, 370, 0, 1);
    LODOP.ADD_PRINT_RECT(40, 13, 80, 250, 0, 1);
    LODOP.ADD_PRINT_RECT(340, 13, 355, 70, 0, 1);
    LODOP.ADD_PRINT_RECT(40, 13, 80, 80, 0, 1);
    LODOP.ADD_PRINT_RECT(120, 13, 355, 20, 20, 1);
    LODOP.ADD_PRINT_RECT(140, 13, 355, 20, 0, 1);
    LODOP.ADD_PRINT_RECT(160, 13, 355, 20, 0, 1);
    LODOP.ADD_PRINT_RECT(180, 13, 355, 30, 0, 1);
    LODOP.ADD_PRINT_RECT(210, 13, 355, 30, 0, 1);
    LODOP.ADD_PRINT_RECT(240, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(265, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(180, 190, 83, 110, 0, 1);
    LODOP.ADD_PRINT_TEXT(345, 17, 345, 63, "厂址:浙江省宁波市象山县经济开发区城南高新创业园官河路9号\r\n邮编: 315700\r\n电话: 0574-25708678  \r\n公司网址: www.king-pont.com \r\n电子邮箱: info@king-pont.com");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 7);
    LODOP.ADD_PRINT_TEXT(5, 97, 290, 32, "甬舟能源技术股份有限公司");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 12);
    LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
    LODOP.ADD_PRINT_BARCODE(45, 18, 87, 85, "QRCode", printdata.id);
    LODOP.SET_PRINT_STYLEA(0, "QRCodeErrorLevel", "L");
    LODOP.SET_PRINT_STYLEA(0, "QRCodeVersion", 5);
    LODOP.SET_PRINT_STYLEA(0, "DataCharset", "UTF-8");
    LODOP.ADD_PRINT_TEXT(120, 12, 85, 20, "产品名称");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(140, 18, 68, 20, "型号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(160, 18, 68, 20, "批号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(185, 18, 68, 20, "卷长(m)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(215, 15, 85, 20, "厚度(mm)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(243, 15, 85, 20, "总长度(m)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(270, 15, 85, 20, "重量(Kg)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);

    LODOP.ADD_PRINT_TEXT(123, 99, 264, 20, "0.5乳白PET");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(142, 97, 264, 20, `${printdata.xh} ${printdata.gg}`);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);

    LODOP.ADD_PRINT_TEXT(160, 99, 264, 20, printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(185, 96, 100, 30, printdata.changdu);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);

    LODOP.ADD_PRINT_TEXT(215, 96, 100, 20, printdata.hd);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(243, 96, 100, 20, printdata.zcd);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(269, 96, 100, 20, zzl);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_BARCODE(294, 50, 279, 29, "Code39", printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "ShowBarText", 0);
    LODOP.ADD_PRINT_TEXT(185, 201, 68, 20, "卷数");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);

    LODOP.ADD_PRINT_TEXT(215, 192, 85, 20, "宽度(mm)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(243, 192, 85, 20, "总面积(m²)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(269, 192, 85, 20, "管芯");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(185, 270, 100, 20, printdata.js);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);

    LODOP.ADD_PRINT_TEXT(215, 270, 100, 20, printdata.kd);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(243, 270, 100, 20, printdata.zmj);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(269, 270, 100, 20, printdata.gx);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);

    LODOP.ADD_PRINT_TEXT(321, 50, 254, 20, printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.PREVIEW();


  }
  else if (khmbcheck == "中文中性模板") {

    LODOP.PRINT_INITA(0, 0, "100.01mm", "109.99mm", "中文中性");
    LODOP.ADD_PRINT_RECT(39, 20, 327, 342, 0, 1);
    LODOP.ADD_PRINT_RECT(39, 20, 327, 38, 0, 1);
    LODOP.ADD_PRINT_RECT(39, 20, 327, 76, 0, 1);
    LODOP.ADD_PRINT_RECT(39, 20, 327, 114, 0, 1);
    LODOP.ADD_PRINT_RECT(39, 20, 327, 152, 0, 1);
    LODOP.ADD_PRINT_RECT(39, 20, 327, 190, 0, 1);
    LODOP.ADD_PRINT_TEXT(47, 20, 78, 28, "标准代号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(47, 105, 241, 28, printdata.bzdh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(85, 36, 58, 28, "批号 ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(85, 105, 241, 28, printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(124, 36, 58, 28, "型号 ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(124, 105, 78, 28, printdata.xh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(124, 199, 58, 28, "检验 ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(124, 263, 82, 28, printdata.djmc);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(163, 36, 58, 28, "类别");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(163, 105, 82, 28, printdata.gg);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(163, 199, 58, 28, "卷数 ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(163, 263, 82, 28, printdata.js);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(202, 23, 88, 28, "厚度(mm) ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(202, 105, 78, 28, printdata.hd);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(202, 185, 88, 28, "宽度(mm) ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(202, 263, 82, 28, printdata.kd);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(238, 25, 88, 28, "长度(m) ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(238, 105, 78, 28, printdata.changdu);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(238, 193, 58, 28, "电晕");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(238, 263, 82, 28, printdata.dy);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(277, 25, 88, 28, "净重(kg) ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(277, 105, 78, 28, printdata.bqzl);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(277, 199, 58, 28, "管芯 ");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(277, 263, 82, 28, printdata.gx);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);

    LODOP.ADD_PRINT_RECT(39, 20, 327, 228, 0, 1);
    LODOP.ADD_PRINT_RECT(39, 20, 327, 266, 0, 1);
    LODOP.ADD_PRINT_RECT(39, 20, 81, 266, 0, 1);
    LODOP.ADD_PRINT_RECT(115, 20, 163, 190, 0, 1);
    LODOP.ADD_PRINT_RECT(115, 183, 83, 190, 0, 1);
    LODOP.ADD_PRINT_BARCODE(317, 63, 247, 38, "Code39", printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "ShowBarText", 0);
    LODOP.ADD_PRINT_TEXT(356, 70, 215, 20, printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.PREVIEW();

  }
  else if (khmbcheck == "乐凯模板") {
    // alert(JSON.stringify(printdata))
    var nyr = printdata.bgsjstr.substr(0, 10)
    var mianji = 1 * printdata.changdu * printdata.kd / 1000
    var houdu = 1 * printdata.hd
    LODOP.PRINT_INITA(0, 0, "100.01mm", "109.99mm", "中文普通（二维码");
    LODOP.ADD_PRINT_SETUP_BKIMG("http://111.77.154.58:2233/logon.png");
    LODOP.SET_SHOW_MODE("BKIMG_LEFT", 18);
    LODOP.SET_SHOW_MODE("BKIMG_TOP", 3);
    LODOP.SET_SHOW_MODE("BKIMG_WIDTH", "19.05mm");
    LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", "9mm");
    LODOP.SET_SHOW_MODE("BKIMG_IN_PREVIEW", true);
    LODOP.SET_SHOW_MODE("BKIMG_PRINT", true);
    LODOP.ADD_PRINT_RECT(40, 13, 355, 370, 0, 1);
    LODOP.ADD_PRINT_RECT(40, 13, 80, 250, 0, 1);
    LODOP.ADD_PRINT_RECT(340, 13, 355, 70, 0, 1);
    LODOP.ADD_PRINT_RECT(40, 13, 80, 80, 0, 1);
    LODOP.ADD_PRINT_RECT(120, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(145, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(170, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(217, 13, 355, 23, 0, 1);
    LODOP.ADD_PRINT_RECT(240, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(265, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(170, 190, 83, 120, 0, 1);
    LODOP.ADD_PRINT_TEXT(345, 17, 345, 63, "厂址:浙江省宁波市象山县经济开发区城南高新创业园官河路9号\r\n邮编: 315700\r\n电话: 0574-25708678\r\n公司网址: www.king-pont.com\r\n电子邮箱: info@king-pont.com");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 7);
    LODOP.ADD_PRINT_TEXT(4, 95, 290, 32, "甬舟能源技术股份有限公司");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
    LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
    LODOP.ADD_PRINT_BARCODE(45, 18, 87, 85, "QRCode", `${printdata.chbm_lk}#${printdata.ph_lk}#${printdata.bh}#${nyr}#${mianji}#${houdu}#${printdata.kd}#${printdata.changdu}#000023300027#[@]GFJCTM01`);
    LODOP.SET_PRINT_STYLEA(0, "QRCodeVersion", 5);
    LODOP.SET_PRINT_STYLEA(0, "QRCodeErrorLevel", "L");
    LODOP.SET_PRINT_STYLEA(0, "DataCharset", "UTF-8");
    LODOP.ADD_PRINT_TEXT(122, 18, 68, 20, "订单号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(147, 18, 68, 20, "批号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(172, 18, 68, 20, "型号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(197, 18, 68, 20, "类别");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(220, 15, 85, 20, "厚度(mm)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(245, 15, 85, 20, "长度(m)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(270, 15, 85, 20, "重量(Kg)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);

    LODOP.ADD_PRINT_RECT(40, 13, 177, 80, 0, 1);
    LODOP.ADD_PRINT_TEXT(68, 116, 64, 20, "批次号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.ADD_PRINT_TEXT(172, 190, 82, 20, "检验");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(195, 190, 82, 20, "卷数");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(219, 190, 82, 20, "宽度(mm)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);

    LODOP.ADD_PRINT_TEXT(245, 190, 82, 20, "电晕");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(269, 190, 82, 20, "管芯");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(125, 95, 272, 20, printdata.ddh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(151, 95, 272, 20, printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(172, 94, 100, 20, printdata.xh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(197, 94, 100, 20, printdata.gg);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(172, 274, 90, 20, printdata.djmc);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(269, 95, 95, 20, printdata.bqzl);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(245, 95, 100, 20, printdata.changdu);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(245, 274, 90, 20, printdata.dy);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(195, 275, 90, 20, printdata.js);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(219, 275, 90, 20, printdata.kd);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(269, 275, 90, 20, printdata.gx);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(219, 95, 100, 20, printdata.hd);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_BARCODE(294, 70, 250, 29, "Code39", printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "ShowBarText", 0);
    LODOP.ADD_PRINT_TEXT(320, 70, 262, 20, printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(69, 200, 154, 20, `${printdata.ph_lk}`);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.PREVIEW();

  }
  else if (khmbcheck == "高阳模板") {
    var ys='未匹配颜色'
    if(printdata.gg.includes("W"))
    {
      ys="超白"
    }
    if(printdata.gg.includes("B"))
    {
      ys="半透"
    }
    if(printdata.gg.includes("T"))
    {
      ys="透明"
    }

    var mianji = 1 * printdata.changdu * printdata.kd / 1000
    var scrqstr = printdata.jh_gy.substr(6, 6)
    LODOP.PRINT_INITA(0, 0, "100.01mm", "109.99mm", "高阳模板");
    LODOP.ADD_PRINT_SETUP_BKIMG("http://111.77.154.58:2233/gy_print_bg.png");
    LODOP.SET_SHOW_MODE("BKIMG_LEFT", 0);
    LODOP.SET_SHOW_MODE("BKIMG_TOP", 0);
    LODOP.SET_SHOW_MODE("BKIMG_WIDTH", "100.05mm");
    LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", "109mm");
    LODOP.SET_SHOW_MODE("BKIMG_IN_PREVIEW", true);
    LODOP.SET_SHOW_MODE("BKIMG_PRINT", true);
    LODOP.ADD_PRINT_RECT(40, 13, 289, 370, 0, 1);
    LODOP.ADD_PRINT_RECT(40, 13, 71, 250, 0, 1);
    LODOP.ADD_PRINT_RECT(340, 13, 289, 70, 0, 1);
    LODOP.ADD_PRINT_RECT(40, 13, 71, 80, 0, 1);
    LODOP.ADD_PRINT_RECT(120, 13, 289, 20, 0, 1);
    LODOP.ADD_PRINT_RECT(140, 13, 289, 20, 0, 1);
    LODOP.ADD_PRINT_RECT(160, 13, 289, 20, 0, 1);
    LODOP.ADD_PRINT_RECT(180, 13, 289, 20, 0, 1);
    LODOP.ADD_PRINT_RECT(200, 13, 289, 20, 0, 1);
    LODOP.ADD_PRINT_RECT(240, 13, 289, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(265, 13, 289, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(180, 155, 71, 110, 0, 1);
    LODOP.ADD_PRINT_TEXT(345, 17, 277, 63, "厂址:浙江省宁波市象山县经济开发区城南高新创业园官河路9号\r\n邮编: 315700\r\n电话: 0574-25708678  \r\n公司网址: www.king-pont.com\r\n电子邮箱: info@king-pont.com");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 7);
    LODOP.ADD_PRINT_TEXT(5, 97, 290, 32, "甬舟能源技术股份有限公司");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
    LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
    LODOP.ADD_PRINT_BARCODE(39, 11, 86, 95, "QRCode", `M${printdata.wlbm_gy}*B${printdata.jh_gy}*G${printdata.gysbm_gy}*C${printdata.ddh}*H${printdata.hxmh_gy}*P${printdata.bh}*S${printdata.changdu}*T${mianji}*D20${scrqstr}`);
    LODOP.SET_PRINT_STYLEA(0, "QRCodeVersion", 5);
    LODOP.SET_PRINT_STYLEA(0, "QRCodeErrorLevel", "L");
    LODOP.SET_PRINT_STYLEA(0, "DataCharset", "UTF-8");
    LODOP.ADD_PRINT_TEXT(120, 16, 68, 20, "订单号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(140, 18, 63, 21, "批号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(185, 18, 63, 20, "型号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(205, 18, 63, 20, "类别");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(221, 15, 65, 20, "厚度(mm)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(245, 15, 65, 20, "长度(m)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(270, 15, 65, 20, "重量(Kg)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);

    LODOP.ADD_PRINT_TEXT(120, 99, 196, 20, printdata.ddh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(140, 99, 196, 20, printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(205, 86, 65, 20, printdata.gg);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(185, 86, 65, 20, printdata.xh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(221, 86, 65, 20, printdata.hd);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(245, 86, 65, 20, printdata.changdu);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);

    LODOP.ADD_PRINT_TEXT(268, 86, 65, 20, printdata.bqzl);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_BARCODE(296, 36, 252, 27, "Code39", printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "ShowBarText", 0);
    LODOP.ADD_PRINT_TEXT(185, 158, 65, 20, "检验");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(205, 158, 65, 20, "卷数");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(221, 157, 65, 20, "宽度(mm)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(245, 157, 65, 20, "电晕");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(268, 157, 65, 20, "管芯");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(185, 228, 65, 20, printdata.djmc);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    
    LODOP.ADD_PRINT_TEXT(205, 228, 65, 20, printdata.js);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(221, 228, 65, 20, printdata.kd);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(245, 228, 65, 20, printdata.dy);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(268, 228, 65, 20, printdata.gx);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(68, 94, 202, 18, printdata.jh_gy);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(321, 60, 184, 20, printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 9);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);

    LODOP.ADD_PRINT_TEXT(162,13,70,25,"颜色");
    LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
    LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
    LODOP.ADD_PRINT_TEXT(164,83,213,20,ys);
    LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
    LODOP.SET_PRINT_STYLEA(0,"Alignment",2);


    LODOP.PREVIEW();

  }
  else if (khmbcheck == "福斯特模板") {
    var mj = printdata.changdu * printdata.kd / 1000
    LODOP.PRINT_INITA(0, 0, "100.01mm", "109.99mm", "福斯特模板");
    LODOP.ADD_PRINT_SETUP_BKIMG("http://111.77.154.58:2233/logon.png");
    LODOP.SET_SHOW_MODE("BKIMG_LEFT", 18);
    LODOP.SET_SHOW_MODE("BKIMG_TOP", 3);
    LODOP.SET_SHOW_MODE("BKIMG_WIDTH", "19.05mm");
    LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", "9mm");
    LODOP.SET_SHOW_MODE("BKIMG_IN_PREVIEW", true);
    LODOP.SET_SHOW_MODE("BKIMG_PRINT", true);
    LODOP.ADD_PRINT_RECT(40, 13, 355, 370, 0, 1);
    LODOP.ADD_PRINT_RECT(40, 13, 80, 250, 0, 1);
    LODOP.ADD_PRINT_RECT(340, 13, 355, 70, 0, 1);
    LODOP.ADD_PRINT_RECT(40, 13, 80, 80, 0, 1);
    LODOP.ADD_PRINT_RECT(120, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(145, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(170, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(217, 13, 355, 23, 0, 1);
    LODOP.ADD_PRINT_RECT(240, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(265, 13, 355, 25, 0, 1);
    LODOP.ADD_PRINT_RECT(170, 190, 83, 120, 0, 1);
    LODOP.ADD_PRINT_TEXT(345, 17, 345, 63, "厂址:浙江省宁波市象山县经济开发区城南高新创业园官河路9号\r\n邮编: 315700\r\n电话: 0574-25708678  \r\n公司网址: www.king-pont.com \r\n电子邮箱: info@king-pont.com");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 7);
    LODOP.ADD_PRINT_TEXT(5, 97, 290, 32, "甬舟能源技术股份有限公司");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
    LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
    LODOP.ADD_PRINT_BARCODE(45, 18, 87, 85, "QRCode", `,${printdata.fst_wlbm},${printdata.fst_jh},${printdata.hd},${printdata.kd},${printdata.changdu},${printdata.js},${mj},${printdata.fst_gd},,${printdata.bqzl},${printdata.ddh}`);
    LODOP.SET_PRINT_STYLEA(0, "QRCodeErrorLevel", "L");
    LODOP.SET_PRINT_STYLEA(0, "QRCodeVersion", 5);
    LODOP.SET_PRINT_STYLEA(0, "DataCharset", "UTF-8");
    LODOP.ADD_PRINT_TEXT(122, 18, 68, 20, "订单号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(147, 18, 68, 20, "批号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(172, 18, 68, 20, "型号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(197, 18, 68, 20, "类别");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(220, 15, 85, 20, "厚度(mm)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(243, 15, 85, 20, "长度(m)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(270, 15, 85, 20, "重量(Kg)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(123, 99, 264, 20, printdata.ddh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(146, 99, 264, 20, printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(172, 96, 100, 20, printdata.xh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(198, 96, 100, 20, printdata.gg);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(220, 96, 100, 20, printdata.hd);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(243, 96, 100, 20, printdata.changdu);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(269, 96, 100, 20, printdata.bqzl);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_BARCODE(294, 75, 282, 29, "Code39", printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "ShowBarText", 0);
    LODOP.ADD_PRINT_TEXT(173, 201, 68, 20, "检验");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(198, 201, 68, 20, "卷数");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(219, 192, 85, 20, "宽度(mm)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(243, 192, 85, 20, "电晕");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(269, 192, 85, 20, "管芯");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(173, 270, 100, 20, printdata.djmc);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(198, 270, 100, 20, printdata.js);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(219, 270, 100, 20, printdata.kd);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(243, 270, 100, 20, printdata.dy);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(269, 270, 100, 20, printdata.gx);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(321, 65, 282, 20, printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.PREVIEW();


  }
}


/** 盘带小标打印模板
 * @description 打印
 * @param {Object} printdata 打印数据
 */
export function useprint_pdxb_util(khmbcheck, printdata) {
var  LODOP = getLodop();

  if (khmbcheck == "盘带模板") {
    LODOP.PRINT_INITA(0, 0, "90mm", "60mm", "中文普通（盘带");
    LODOP.ADD_PRINT_RECT(10, 15, 300, 20, 0, 1);
    LODOP.ADD_PRINT_RECT(30, 15, 300, 20, 0, 1);
    LODOP.ADD_PRINT_RECT(50, 15, 300, 20, 0, 1);
    LODOP.ADD_PRINT_RECT(70, 15, 300, 20, 0, 1);
    LODOP.ADD_PRINT_RECT(90, 15, 300, 20, 0, 1);
    LODOP.ADD_PRINT_RECT(110, 15, 300, 20, 0, 1);
    LODOP.ADD_PRINT_RECT(130, 15, 300, 20, 0, 1);
    LODOP.ADD_PRINT_RECT(150, 15, 300, 60, 0, 1);
    LODOP.ADD_PRINT_RECT(10, 15, 80, 200, 0, 1);
    LODOP.ADD_PRINT_RECT(70, 169, 76, 80, 0, 1);
    LODOP.ADD_PRINT_TEXT(10, 15, 80, 20, "产品名称");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(30, 15, 80, 20, "型号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(50, 15, 80, 20, "批号");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(70, 15, 80, 20, "卷长(m)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(70, 170, 80, 20, "卷数");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(90, 15, 80, 20, "厚度(mm)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(90, 170, 80, 20, "宽度(mm)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(110, 15, 80, 20, "总长度(m)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(110, 170, 80, 20, "总面积(m²)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(130, 15, 80, 20, "重量(kg)");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(130, 170, 80, 20, "管芯");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(178, 15, 80, 20, "Code");
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(10, 90, 220, 20, `${printdata.ddh}`);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(30, 90, 220, 20, `${printdata.xh}`);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(50, 90, 220, 20, `${printdata.bh}`);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(70, 90, 80, 20, `${printdata.changdu}`);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(90, 90, 80, 20, `${printdata.hd}`);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(110, 90, 80, 20, `${printdata.zcd}`);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(130, 90, 80, 20, `${printdata.zzl}`);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(70, 245, 80, 20, `${printdata.js}`);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(90, 245, 80, 20, `${printdata.kd}`);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(110, 245, 80, 20, `${printdata.zmj}`);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_TEXT(130, 245, 80, 20, `${printdata.gx}`);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.ADD_PRINT_BARCODE(161, 103, 209, 29, "128Auto", printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "ShowBarText", 0);
    LODOP.ADD_PRINT_TEXT(189, 120, 174, 20, printdata.bh);
    LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
    LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
    LODOP.PREVIEW();


  }
}



/**
 * 用于打印采购入库单标签
 *  
 * */

export function useprint_cgrk_util(printdata) {
  //LODOP
  CLODOPTYDY.PRINT_INITA(0, 0, "90mm", "60mm", "原料标签");
  CLODOPTYDY.SET_PRINTER_INDEX('原料打印机')
  CLODOPTYDY.ADD_PRINT_RECT(30, 40, 260, 20, 0, 1);
  CLODOPTYDY.ADD_PRINT_RECT(50, 40, 260, 20, 0, 1);
  CLODOPTYDY.ADD_PRINT_RECT(70, 40, 260, 20, 0, 1);
  CLODOPTYDY.ADD_PRINT_RECT(90, 40, 260, 20, 0, 1);
  CLODOPTYDY.ADD_PRINT_RECT(110, 40, 260, 20, 0, 1);
  CLODOPTYDY.ADD_PRINT_RECT(130, 40, 260, 20, 0, 1);
  CLODOPTYDY.ADD_PRINT_RECT(150, 40, 260, 45, 0, 1);
  CLODOPTYDY.ADD_PRINT_TEXT(4, 122, 124, 27, "原料信息卡");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 11);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "Alignment", 2);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "Bold", 1);
  CLODOPTYDY.ADD_PRINT_RECT(30, 40, 65, 165, 0, 1);
  CLODOPTYDY.ADD_PRINT_TEXT(30, 40, 65, 20, "物料名称");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 10);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "Alignment", 2);
  CLODOPTYDY.ADD_PRINT_TEXT(50, 40, 65, 20, "物料编码");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 10);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "Alignment", 2);
  CLODOPTYDY.ADD_PRINT_TEXT(70, 40, 65, 20, "通知单号");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 10);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "Alignment", 2);
  CLODOPTYDY.ADD_PRINT_TEXT(90, 40, 65, 20, "重量");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 10);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "Alignment", 2);
  CLODOPTYDY.ADD_PRINT_TEXT(110, 40, 65, 20, "日期");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 10);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "Alignment", 2);
  CLODOPTYDY.ADD_PRINT_TEXT(130, 40, 65, 20, "供应商");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 10);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "Alignment", 2);
  CLODOPTYDY.ADD_PRINT_TEXT(132,109,193,20, printdata.gysmc);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", printdata.gysmc.length>13?7:10);
  CLODOPTYDY.ADD_PRINT_TEXT(131, 171, 60, 20, "");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 10);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "Alignment", 2);
  CLODOPTYDY.ADD_PRINT_TEXT(154, 40, 65, 30, "条形码");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 10);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "Alignment", 2);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 10);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "Alignment", 2);
  CLODOPTYDY.ADD_PRINT_TEXT(172, 40, 65, 30, "code");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 10);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "Alignment", 2);
  CLODOPTYDY.ADD_PRINT_TEXT(30, 108, 173, 20, printdata.wlmc);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 10);
  CLODOPTYDY.ADD_PRINT_TEXT(50, 108, 173, 20, printdata.wlbm);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 10);
  CLODOPTYDY.ADD_PRINT_TEXT(70, 108, 173, 20, printdata.sltzdh);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 11);
  CLODOPTYDY.ADD_PRINT_TEXT(90, 108, 173, 20, printdata.mbzl);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 11);
  CLODOPTYDY.ADD_PRINT_TEXT(110, 108, 183, 20, printdata.create_time.substr(0, 11));
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 11);
  CLODOPTYDY.ADD_PRINT_BARCODE(152, 128, 198, 28, "128auto", printdata.id);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "ShowBarText", 0);
  CLODOPTYDY.ADD_PRINT_TEXT(180, 110, 193, 20, printdata.id);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 10);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "Alignment", 2);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "Bold", 1);
  CLODOPTYDY.ADD_PRINT_RECT(90, 230, 70, 20, 0, 1);
  CLODOPTYDY.ADD_PRINT_RECT(90, 179, 121, 20, 0, 1);
  CLODOPTYDY.ADD_PRINT_TEXT(92, 180, 50, 20, "单位");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 10);
  CLODOPTYDY.SET_PRINT_STYLEA(0, "Alignment", 2);
  CLODOPTYDY.ADD_PRINT_TEXT(93, 238, 50, 20, "Kg");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0, "FontSize", 10);
  CLODOPTYDY.PRINT();

}

//
/**
 * 用于盘带小卷
 *  
 * */

export function useprint_pdxj_local_util(LODOP,printdata) {
 
  LODOP.NewPage();
  LODOP.ADD_PRINT_TEXT(10,21,190,32,printdata.bh);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  
}


/**
 * 用于打印采购入库单统计
 *  
 * */

export function useprint_cgrk_tj_local_util(LODOP,printdata) {
 
  LODOP.NewPage();
  LODOP.ADD_PRINT_TEXT(24,4,312,47,`收料报检单号：${printdata.sltzdh}`);
  LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
  LODOP.SET_PRINT_STYLEA(0,"FontSize",16);
  LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  LODOP.ADD_PRINT_TEXT(80,8,278,40,`物料名称：${printdata.wlmc_tj}`);
  LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
  LODOP.SET_PRINT_STYLEA(0,"FontSize",13);
  LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  LODOP.ADD_PRINT_TEXT(128,8,236,35,`物料编码：${printdata.wlbm_tj}`);
  LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
  LODOP.SET_PRINT_STYLEA(0,"FontSize",13);
  LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  LODOP.ADD_PRINT_TEXT(171,8,266,35,`标签数量：${printdata.wlbm_num}`);
  LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
  LODOP.SET_PRINT_STYLEA(0,"FontSize",13);
  LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  
}


/**
 * 用于打印采购入库单标签
 *  
 * */

export function useprint_cgrk_local_util(LODOP,printdata) {
  //LODOP
  LODOP.NewPage();
  LODOP.ADD_PRINT_RECT(30, 40, 260, 20, 0, 1);
  LODOP.ADD_PRINT_RECT(50, 40, 260, 20, 0, 1);
  LODOP.ADD_PRINT_RECT(70, 40, 260, 20, 0, 1);
  LODOP.ADD_PRINT_RECT(90, 40, 260, 20, 0, 1);
  LODOP.ADD_PRINT_RECT(110, 40, 260, 20, 0, 1);
  LODOP.ADD_PRINT_RECT(130, 40, 260, 20, 0, 1);
  LODOP.ADD_PRINT_RECT(150, 40, 260, 45, 0, 1);
  LODOP.ADD_PRINT_TEXT(4, 122, 124, 27, "原料信息卡");
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
  LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
  LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
  LODOP.ADD_PRINT_RECT(30, 40, 65, 165, 0, 1);
  LODOP.ADD_PRINT_TEXT(30, 40, 65, 20, "物料名称");
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
  LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
  LODOP.ADD_PRINT_TEXT(50, 40, 65, 20, "物料编码");
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
  LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
  LODOP.ADD_PRINT_TEXT(70, 40, 65, 20, "通知单号");
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
  LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
  LODOP.ADD_PRINT_TEXT(90, 40, 65, 20, "重量");
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
  LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
  LODOP.ADD_PRINT_TEXT(110, 40, 65, 20, "日期");
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
  LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
  LODOP.ADD_PRINT_TEXT(130, 40, 65, 20, "供应商");
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
  LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
  LODOP.ADD_PRINT_TEXT(132,109,193,20, printdata.gysmc);
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", printdata.gysmc.length>13?7:10);
  LODOP.ADD_PRINT_TEXT(131, 171, 60, 20, "");
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
  LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
  LODOP.ADD_PRINT_TEXT(154, 40, 65, 30, "条形码");
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
  LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
  LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
  LODOP.ADD_PRINT_TEXT(172, 40, 65, 30, "code");
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
  LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
  LODOP.ADD_PRINT_TEXT(30, 108, 173, 20, printdata.wlmc);
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
  LODOP.ADD_PRINT_TEXT(50, 108, 173, 20, printdata.wlbm);
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
  LODOP.ADD_PRINT_TEXT(70, 108, 173, 20, printdata.sltzdh);
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
  LODOP.ADD_PRINT_TEXT(90, 108, 173, 20, printdata.mbzl);
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
  LODOP.ADD_PRINT_TEXT(110, 108, 183, 20, printdata.create_time.substr(0, 11));
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 11);
  LODOP.ADD_PRINT_BARCODE(152, 128, 198, 28, "128auto", printdata.id);
  LODOP.SET_PRINT_STYLEA(0, "ShowBarText", 0);
  LODOP.ADD_PRINT_TEXT(180, 110, 193, 20, printdata.id);
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
  LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
  LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
  LODOP.ADD_PRINT_RECT(90, 230, 70, 20, 0, 1);
  LODOP.ADD_PRINT_RECT(90, 179, 121, 20, 0, 1);
  LODOP.ADD_PRINT_TEXT(92, 180, 50, 20, "单位");
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
  LODOP.SET_PRINT_STYLEA(0, "Alignment", 2);
  LODOP.ADD_PRINT_TEXT(93, 238, 50, 20, "Kg");
  LODOP.SET_PRINT_STYLEA(0, "FontName", "微软雅黑");
  LODOP.SET_PRINT_STYLEA(0, "FontSize", 10);
 

}



/**
 * 用于打印采购入库单统计
 *  
 * */

export function useprint_cgrk_tj_util(printdata) {
  //CLODOPTYDY

  CLODOPTYDY.PRINT_INITA(0,0,"90.01mm","60.01mm","原料标签统计");
  CLODOPTYDY.SET_PRINTER_INDEX('原料打印机')
  CLODOPTYDY.ADD_PRINT_TEXT(24,4,312,47,`收料报检单号：${printdata.sltzdh}`);
  CLODOPTYDY.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0,"FontSize",16);
  CLODOPTYDY.SET_PRINT_STYLEA(0,"Bold",1);
  CLODOPTYDY.ADD_PRINT_TEXT(80,8,278,40,`物料名称：${printdata.wlmc_tj}`);
  CLODOPTYDY.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0,"FontSize",13);
  CLODOPTYDY.SET_PRINT_STYLEA(0,"Bold",1);
  CLODOPTYDY.ADD_PRINT_TEXT(128,8,236,35,`物料编码：${printdata.wlbm_tj}`);
  CLODOPTYDY.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0,"FontSize",13);
  CLODOPTYDY.SET_PRINT_STYLEA(0,"Bold",1);
  CLODOPTYDY.ADD_PRINT_TEXT(171,8,266,35,`标签数量：${printdata.wlbm_num}`);
  CLODOPTYDY.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
  CLODOPTYDY.SET_PRINT_STYLEA(0,"FontSize",13);
  CLODOPTYDY.SET_PRINT_STYLEA(0,"Bold",1);
  
  CLODOPTYDY.PRINT();

}



/**
 * 用于母卷标签打印
 *  
 * */

export function use_print_mjbq_util(printdata) {
  var  LODOP = getLodop();

console.log("printdata",printdata)
let cdwzhx=printdata.cdwzhx.value
var mxlen=cdwzhx.length

console.log("cdwzhx",printdata.cdwzhx)
LODOP.PRINT_INITA(0,-5,"210mm","148.01mm","母卷流转卡");
LODOP.ADD_PRINT_TEXT(25,240,313,35,"甬舟能源技术股份有限公司");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(54,646,110,25,"编号：QR-10-29");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.ADD_PRINT_TEXT(55,332,130,26,`${printdata.cx.value}母卷流转卡`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(30,17,255,25,`型号：${printdata.xh.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.ADD_PRINT_TEXT(54,18,237,20,printdata.khmc.value);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
   //渲染横向框
LODOP.ADD_PRINT_RECT(80,5,750,40,0,1);
LODOP.ADD_PRINT_RECT(120,5,750,40,0,1);
LODOP.ADD_PRINT_RECT(160,5,750,40,0,1);
LODOP.ADD_PRINT_RECT(200,5,750,40,0,1);
LODOP.ADD_PRINT_RECT(240,5,750,40,0,1);
LODOP.ADD_PRINT_RECT(280,5,750,40,0,1);
LODOP.ADD_PRINT_RECT(320,5,750,40,0,1);
LODOP.ADD_PRINT_RECT(360,5,750,40,0,1);
LODOP.ADD_PRINT_RECT(400,5,750,110,0,1);
 //横向渲染框结束
LODOP.ADD_PRINT_TEXT(510,423,130,25,`看卷员：${printdata.bgr.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
LODOP.ADD_PRINT_TEXT(510,594,140,25,`班长：${printdata.banzhang.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
 //左边最长的竖线
 LODOP.ADD_PRINT_RECT(80,5,95,430,0,1);
 //上三竖线
LODOP.ADD_PRINT_RECT(80,100,95,120,0,1);
LODOP.ADD_PRINT_RECT(80,195,70,120,0,1);
LODOP.ADD_PRINT_RECT(80,265,70,120,0,1);
LODOP.ADD_PRINT_RECT(80,335,70,120,0,1);
LODOP.ADD_PRINT_RECT(80,405,70,120,0,1);
LODOP.ADD_PRINT_RECT(80,475,70,120,0,1);
LODOP.ADD_PRINT_RECT(80,545,70,120,0,1);
LODOP.ADD_PRINT_RECT(80,615,70,120,0,1);
LODOP.ADD_PRINT_RECT(80,685,70,120,0,1);
  //中间竖线
LODOP.ADD_PRINT_RECT(240,100,75,160,0,1);
LODOP.ADD_PRINT_RECT(240,175,75,160,0,1);
LODOP.ADD_PRINT_RECT(240,250,75,160,0,1);
LODOP.ADD_PRINT_RECT(240,325,75,160,0,1);
LODOP.ADD_PRINT_RECT(240,400,75,160,0,1);
LODOP.ADD_PRINT_RECT(240,475,75,160,0,1);
  //左侧标题文本内容
LODOP.ADD_PRINT_TEXT(90,9,85,25,"母卷批号");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,7,93,25,"母卷长度");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,6,95,25,"厚度设定");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(211,7,95,25,"整卷缺陷");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(251,6,95,25,"长度位置");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(290,6,95,25,"长度位置");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(330,5,95,25,"长度位置");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(371,3,100,25,"长度位置");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(445,3,95,30,"备注");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,193,70,25,"日期");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,192,70,25,"有效宽度");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,194,70,25,"最大值");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,332,73,25,"班组");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,333,74,25,"电晕");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,336,70,25,"最小值");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,474,70,25,"型号厚度");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,474,69,25,"公差范围");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,474,70,25,"平均值");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,612,70,25,"班次");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,612,75,25,"钢芯号");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,612,76,25,"回料");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(250,175,75,25,"横向");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(291,175,75,25,"横向");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(330,175,75,25,"横向");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(371,175,75,25,"横向");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(250,325,75,25,"面积");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(290,325,75,25,"面积");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(330,325,75,25,"面积");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(370,325,75,25,"面积");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(250,475,75,25,"缺陷");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(290,475,75,25,"缺陷");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(330,475,75,25,"缺陷");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(371,475,75,25,"缺陷");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,101,93,25,`${printdata.mjbh.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,264,75,25,`${printdata.bgsj.value.substr(0,11)}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,402,70,25,`${printdata.banzu.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,544,70,25,`${printdata.xhhd.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",printdata.xhhd.length>9?6:8);

LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,684,70,25,`${printdata.banci.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,102,93,25,`${printdata.mjcd.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,265,65,25,`${printdata.yxkd.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,545,70,25,`${printdata.gcfw.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(129,407,65,25,`${printdata.dy.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,102,93,25,`${printdata.hdsd.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,543,70,25,`${printdata.pjz.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,407,65,25,`${printdata.zxz.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,264,70,25,`${printdata.zdz.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,685,69,25,`${printdata.gxh.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,686,70,25,`${printdata.hl.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(208,142,613,30,`${printdata.zjqx.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.ADD_PRINT_TEXT(250,100,75,25,`${mxlen>0?cdwzhx[0].cdwz:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(290,100,75,25,`${mxlen>1?cdwzhx[1].cdwz:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(330,100,75,25,`${mxlen>2?cdwzhx[2].cdwz:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(371,100,75,25,`${mxlen>3?cdwzhx[3].cdwz:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(250,250,75,25,`${mxlen>0?cdwzhx[0].hx:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(290,250,75,25,`${mxlen>1?cdwzhx[1].hx:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(330,250,75,25,`${mxlen>2?cdwzhx[2].hx:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(371,250,75,25,`${mxlen>3?cdwzhx[3].hx:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(250,400,75,25,`${mxlen>0?cdwzhx[0].mj:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(290,400,75,25,`${mxlen>1?cdwzhx[1].mj:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(330,400,75,25,`${mxlen>2?cdwzhx[2].mj:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(370,400,75,25,`${mxlen>3?cdwzhx[3].mj:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);


LODOP.ADD_PRINT_TEXT(245,555,200,25,`${mxlen>0?cdwzhx[0].qx:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.ADD_PRINT_TEXT(285,555,200,25,`${mxlen>1?cdwzhx[1].qx:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.ADD_PRINT_TEXT(325,555,200,25,`${mxlen>2?cdwzhx[2].qx:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.ADD_PRINT_TEXT(365,555,200,25,`${mxlen>3?cdwzhx[3].qx:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");


LODOP.ADD_PRINT_TEXT(399,105,637,110,`${printdata.bz.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
LODOP.ADD_PRINT_BARCODE(4,567,82,82, "QRCode", `http://111.77.154.58:2233/#/qb/mjbg/mobile_mjlzk?mjbh=${printdata.mjbh.value}`);
LODOP.SET_PRINT_STYLEA(0, "QRCodeErrorLevel", "L");
LODOP.SET_PRINT_STYLEA(0, "QRCodeVersion", 5);
LODOP.SET_PRINT_STYLEA(0, "DataCharset", "UTF-8");
LODOP.ADD_PRINT_TEXT(10,16,220,30,`${printdata.gdh.value}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);

  LODOP.PREVIEW();

}

export function use_print_mjbq_util_selectRow(printdata) {
  var  LODOP = getLodop();

console.log("printdata",printdata)
let cdwzhx=printdata.cdwzhx
var mxlen=cdwzhx.length

LODOP.PRINT_INITA(0,-5,"210mm","148.01mm","母卷流转卡");
LODOP.ADD_PRINT_TEXT(25,240,313,35,"甬舟能源技术股份有限公司");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(54,646,110,25,"编号：QR-10-29");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.ADD_PRINT_TEXT(55,332,130,26,`${printdata.cx}母卷流转卡`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(30,17,255,25,`型号：${printdata.xh}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.ADD_PRINT_TEXT(54,18,237,20,printdata.khmc);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
   //渲染横向框
LODOP.ADD_PRINT_RECT(80,5,750,40,0,1);
LODOP.ADD_PRINT_RECT(120,5,750,40,0,1);
LODOP.ADD_PRINT_RECT(160,5,750,40,0,1);
LODOP.ADD_PRINT_RECT(200,5,750,40,0,1);
LODOP.ADD_PRINT_RECT(240,5,750,40,0,1);
LODOP.ADD_PRINT_RECT(280,5,750,40,0,1);
LODOP.ADD_PRINT_RECT(320,5,750,40,0,1);
LODOP.ADD_PRINT_RECT(360,5,750,40,0,1);
LODOP.ADD_PRINT_RECT(400,5,750,110,0,1);
 //横向渲染框结束
LODOP.ADD_PRINT_TEXT(510,423,130,25,`看卷员：${printdata.bgr}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
LODOP.ADD_PRINT_TEXT(510,594,140,25,`班长：${printdata.banzhang}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
 //左边最长的竖线
 LODOP.ADD_PRINT_RECT(80,5,95,430,0,1);
 //上三竖线
LODOP.ADD_PRINT_RECT(80,100,95,120,0,1);
LODOP.ADD_PRINT_RECT(80,195,70,120,0,1);
LODOP.ADD_PRINT_RECT(80,265,70,120,0,1);
LODOP.ADD_PRINT_RECT(80,335,70,120,0,1);
LODOP.ADD_PRINT_RECT(80,405,70,120,0,1);
LODOP.ADD_PRINT_RECT(80,475,70,120,0,1);
LODOP.ADD_PRINT_RECT(80,545,70,120,0,1);
LODOP.ADD_PRINT_RECT(80,615,70,120,0,1);
LODOP.ADD_PRINT_RECT(80,685,70,120,0,1);
  //中间竖线
LODOP.ADD_PRINT_RECT(240,100,75,160,0,1);
LODOP.ADD_PRINT_RECT(240,175,75,160,0,1);
LODOP.ADD_PRINT_RECT(240,250,75,160,0,1);
LODOP.ADD_PRINT_RECT(240,325,75,160,0,1);
LODOP.ADD_PRINT_RECT(240,400,75,160,0,1);
LODOP.ADD_PRINT_RECT(240,475,75,160,0,1);
  //左侧标题文本内容
LODOP.ADD_PRINT_TEXT(90,9,85,25,"母卷批号");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,7,93,25,"母卷长度");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,6,95,25,"厚度设定");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(211,7,95,25,"整卷缺陷");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(251,6,95,25,"长度位置");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(290,6,95,25,"长度位置");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(330,5,95,25,"长度位置");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(371,3,100,25,"长度位置");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(445,3,95,30,"备注");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,193,70,25,"日期");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,192,70,25,"有效宽度");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,194,70,25,"最大值");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,332,73,25,"班组");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,333,74,25,"电晕");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,336,70,25,"最小值");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,474,70,25,"型号厚度");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,474,69,25,"公差范围");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,474,70,25,"平均值");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,612,70,25,"班次");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,612,75,25,"钢芯号");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,612,76,25,"回料");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(250,175,75,25,"横向");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(291,175,75,25,"横向");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(330,175,75,25,"横向");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(371,175,75,25,"横向");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(250,325,75,25,"面积");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(290,325,75,25,"面积");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(330,325,75,25,"面积");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(370,325,75,25,"面积");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(250,475,75,25,"缺陷");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(290,475,75,25,"缺陷");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(330,475,75,25,"缺陷");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(371,475,75,25,"缺陷");
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,101,93,25,`${printdata.mjbh}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,264,75,25,`${printdata.bgsj.substr(0,11)}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,402,70,25,`${printdata.banzu}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,544,70,25,`${printdata.xhhd}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",printdata.xhhd.length>9?6:8);

LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(90,684,70,25,`${printdata.banci}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,102,93,25,`${printdata.mjcd}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,265,65,25,`${printdata.yxkd}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,545,70,25,`${printdata.gcfw}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(129,407,65,25,`${printdata.dy}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,102,93,25,`${printdata.hdsd}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,543,70,25,`${printdata.pjz}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,407,65,25,`${printdata.zxz}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,264,70,25,`${printdata.zdz}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(128,685,69,25,`${printdata.gxh}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(170,686,70,25,`${printdata.hl}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(208,142,613,30,`${printdata.zjqx}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.ADD_PRINT_TEXT(250,100,75,25,`${mxlen>0?cdwzhx[0].cdwz:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(290,100,75,25,`${mxlen>1?cdwzhx[1].cdwz:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(330,100,75,25,`${mxlen>2?cdwzhx[2].cdwz:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(371,100,75,25,`${mxlen>3?cdwzhx[3].cdwz:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(250,250,75,25,`${mxlen>0?cdwzhx[0].hx:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(290,250,75,25,`${mxlen>1?cdwzhx[1].hx:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(330,250,75,25,`${mxlen>2?cdwzhx[2].hx:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(371,250,75,25,`${mxlen>3?cdwzhx[3].hx:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(250,400,75,25,`${mxlen>0?cdwzhx[0].mj:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(290,400,75,25,`${mxlen>1?cdwzhx[1].mj:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(330,400,75,25,`${mxlen>2?cdwzhx[2].mj:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_TEXT(370,400,75,25,`${mxlen>3?cdwzhx[3].mj:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);


LODOP.ADD_PRINT_TEXT(245,555,200,25,`${mxlen>0?cdwzhx[0].qx:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.ADD_PRINT_TEXT(285,555,200,25,`${mxlen>1?cdwzhx[1].qx:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.ADD_PRINT_TEXT(325,555,200,25,`${mxlen>2?cdwzhx[2].qx:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.ADD_PRINT_TEXT(365,555,200,25,`${mxlen>3?cdwzhx[3].qx:""}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.ADD_PRINT_TEXT(399,105,637,110,`${printdata.bz}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
LODOP.ADD_PRINT_BARCODE(4,567,82,82, "QRCode", `http://111.77.154.58:2233/#/qb/mjbg/mobile_mjlzk?mjbh=${printdata.mjbh}`);
LODOP.SET_PRINT_STYLEA(0, "QRCodeErrorLevel", "L");
LODOP.SET_PRINT_STYLEA(0, "QRCodeVersion", 5);
LODOP.SET_PRINT_STYLEA(0, "DataCharset", "UTF-8");
LODOP.ADD_PRINT_TEXT(10,16,220,30,`${printdata.gdh}`);
LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  LODOP.PREVIEW();

}







